#pragma once

#include "..\OtlCore.h"

#include <ppltasks.h>
#include <string>

namespace Otl { namespace Sql
{
	class Connection final
	{
	public:
		_OTLCOREIMP
		explicit Connection(_In_z_ const wchar_t * connectionString);

		explicit Connection(const std::wstring & connectionString)
			: Connection(connectionString.c_str())
		{
		}

		_OTLCOREIMP
		concurrency::task<void> Open();
	};
}}